package com.yiyahui.project.erp.mapper;

import java.util.List;
import com.yiyahui.project.erp.domain.YiyaMarketReservation;
import com.yiyahui.project.erp.domain.requestVo.YiYaMarketRequest;
import org.apache.ibatis.annotations.Param;

/**
 * 市场建档Mapper接口
 * 
 * @author yiyahui
 * @date 2020-05-07
 */
public interface YiyaMarketReservationMapper 
{
    /**
     * 查询市场建档
     * 
     * @param id 市场建档ID
     * @return 市场建档
     */
    public YiyaMarketReservation selectYiyaMarketReservationById(Long id);

    /**
     * 查询市场建档列表
     * 
     * @param
     * @return 市场建档集合
     */
    public List<YiyaMarketReservation> selectYiyaMarketReservationList(YiYaMarketRequest yiYaMarketRequest);

    /**
     * 新增市场建档
     * 
     * @param yiyaMarketReservation 市场建档
     * @return 结果
     */
    public int insertYiyaMarketReservation(YiyaMarketReservation yiyaMarketReservation);

    /**
     * 修改市场建档
     * 
     * @param yiyaMarketReservation 市场建档
     * @return 结果
     */
    public int updateYiyaMarketReservation(YiyaMarketReservation yiyaMarketReservation);

    /**
     * 删除市场建档
     * 
     * @param id 市场建档ID
     * @return 结果
     */
    public int deleteYiyaMarketReservationById(Long id);

    /**
     * 批量删除市场建档
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    public int deleteYiyaMarketReservationByIds(Long[] ids);

    /**
     * 根据ids 查询列表
     * @param ids
     * @return
     */
    List<YiyaMarketReservation> selectByIds(@Param("ids") List<Long> ids);

    List<YiyaMarketReservation> selectByNameOrPhone(@Param("keyword") String keyword);

    String getPhoneByIds(String ids);
}
